#include <iostream>
#include <string>
#include <cstdio>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>

const std::string gpath = "/home/zxl/study/stu0512";
int gprojID = 0x6666;
int gshmsize = 4096;

std::string ToHex(key_t k)
{
    char buffer[64];
    snprintf(buffer, sizeof(buffer), "%0x", k);
    return buffer;
}